Component({
    data: {
        show: false,
        clickOverlayClose:true,
    },
    methods: {
        open(v, roomData) {
            this.setData({
                show: v
            })
            this.roomData = roomData
        },
        onClose() {
            this.setData({show: false})
            if (!this.roomData) return
            this.triggerEvent('close', this.roomData)
            this.roomData = null
        },
    }
});
